package com.test.kotlin01

fun main(){
    val age = 3
    if(age in  0..3){
        println("幼儿")
    }else if( age in 3 ..12){
        println("儿童")
    }else{
        println("少年")
    }

    if(age !in 12..100){
        println("不是少年")
    }


    val school = "小学"
    val level:Any = when(school){
        "学前班"->"幼儿"
        "小学"->"儿童"
        "中序"->"青少年"
        else->{
            println("位置")
        }
    }

    println(level)


}

